﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace ChatServer
{
    [ServiceContract(CallbackContract = typeof(INotification))]
    public interface IServer
    {
        [OperationContract(IsOneWay =true)]
        void Subscribe(string topic);

        [OperationContract(IsOneWay = true)]
        void PublishText(string topic, string content);

        [OperationContract(IsOneWay = true)]
        void PublishVideo(string topic, VideoFrame content);
    }


}
